jsx3.Class.defineClass(
        "ux.megatron.gui.WizardCancelButton",
        ux.megatron.gui.WizardNavButton,
        null,
        function (button) {

            var strFnctn = button.prototype.doExecute.toString();
            var obfFnctn = strFnctn.substring(strFnctn.indexOf("this.") + 5);
            obfFnctn = obfFnctn.substring(0,obfFnctn.indexOf("("));
            button.prototype[obfFnctn] = function(objEvent, objGUI) {
                if (objEvent == null || objEvent.leftButton() || !objEvent.isMouseEvent()) {
                    objEvent.wizButton = this;
                   this.handleNav(objEvent, null);
                    this.doEvent(jsx3.gui.Interactive.EXECUTE, {objEVENT:objEvent});
                }
            }

            button.prototype.handleNav = function(objEvent, nextPanel) {
                objEvent.wizButton = this;
                if (window.confirm(ux.megatron.Main.getServer().getDynamicProperty("@addin@Wizard Confirm",this.getText()))) { 
                    this.getWizard().doCancel(objEvent);
                }
                /*
                var server = ux.megatron.Main.getServer();
                var me = this;
                ux.megatron.Dialog.confirm(
                    server.getDynamicProperty("@addin@Wizard Confirm Title"), 
                    server.getDynamicProperty("@addin@Wizard Confirm",me.getText()), 
                    function(dialog){
                        me.getWizard().doCancel(objEvent);
                        dialog.doClose();
                    }
               );
                */
            }
        }
);